<%-- 
    Document   : login
    Created on : 14 avr. 2011, 19:54:29
    Author     : Jeremy Romano
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="include/header.jsp" %>
<div id="main">
    <div id="container">
        <div id="content">

            <div id="loginDiv">
                <form id="loginForm" name="loginform" method="post" action="LoginServlet">
                    <label class="form-label">Login</label> <input name="login" id="login" type="text" class="required" size="25" />
                    <label class="form-label">Mot de passe</label> <input name="pwd" type="password" class="required" size="25" />
                    <input type="hidden" name="action" value="connexion"/>
                    <br/><br/>
                    <input name="connexion" type="submit" value="Connexion" />
                </form>
                <%
                            String ec = request.getParameter("ec");
                            String error = "";
                            if (ec != null) {
                                if (ec.equals("error")) {
                                    out.print("<div class='message-box error'>Erreur d'identification</div>");
                                }
                            }
                %>
            </div>
        </div><!-- #content -->
    </div><!-- #container -->
</div><!-- #main -->
<%@ include file="include/footer.jsp" %>